package com.share.tool.devops.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.share.tool.devops.model.po.SerRegister;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface SerRegisterMapper extends BaseMapper<SerRegister> {
    List<Long> disinctVersion(String contextPath, String serviceName);

    int deleteByVersion(String contextPath, String serviceName, Long version);

    int updateVersion(long version, String updateTime, String ip, String port, String serviceName, String contextPath);

    int deleteByIpAndPort(String ip, String port, String serviceName, String contextPath);
}